<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblContent>
				<nContentKey/>
				<nContentPrimaryId/>
				<nVersion/>
				<cContentForiegnRef/>
				<cContentName/>
				<cContentSchemaName>Module</cContentSchemaName>
				<cContentXmlBrief>
					<Content position="" moduleType="xForm" box="" title="Default xForm" process="xform" contentFile="">
						<model class="ewXform">
							<instance>
								<emailer xmlns="http://www.eonic.co.uk/ewcommon/Services">
									<oBodyXML>
										<Items>
											<Name />
											<Company />
											<Website />
											<Telephone />
											<Email />
											<Address />
											<Message />
										</Items>
									</oBodyXML>
									<xsltPath>/ewcommon/xsl/mailer/emailer.xsl</xsltPath>
									<fromName></fromName>
									<fromEmail></fromEmail>
									<recipientEmail></recipientEmail>
									<SubjectLine>Website Enquiry</SubjectLine>
								</emailer>
							</instance>
							<submission method="post" action="/ewCommon/Services.asmx" SOAPAction="http://www.eonic.co.uk/ewcommon/Services/emailer" id="mailForm" event="return form_check(this);" />
							<bind id="emailer" nodeset="emailer">
								<bind id="oBodyXML" nodeset="oBodyXML/Items">
									<bind id="Name" nodeset="Name" required="true()" type="string" />
									<bind id="Company" nodeset="Company" required="false()" type="string" />
									<bind id="Website" nodeset="Website" required="false()" type="string" />
									<bind id="Email" nodeset="Email" required="true()" type="email" />
									<bind id="Telephone" nodeset="Telephone" required="true()" type="string" />
									<bind id="Message" nodeset="Message" required="false()" type="string" />
									<bind id="Address" nodeset="Address" required="false()" type="string" />
								</bind>
								<bind id="Email" nodeset="fromEmail" required="false()" type="string" />
								<bind id="nOffice" nodeset="SubjectLine" required="true()" type="string" />
							</bind>
						</model>
						<group>
							<input bind="Name" class="required">
								<label>Name</label>
							</input>
							<input bind="Company">
								<label>Company</label>
							</input>
							<input bind="Telephone" class="required">
								<label>Telephone</label>
							</input>
							<input bind="Email" class="required">
								<label>Email</label>
							</input>
							<input bind="Website" appearance="">
								<label>Website</label>
							</input>
							<textarea bind="Address" class="textarea" rows="4">
								<label>Address</label>
							</textarea>
							<textarea bind="Message" class="textarea" rows="4">
								<label>How we can help</label>
							</textarea>
							<submit submission="mailForm" bind="ewCmd" class="principle">
								<label>Send</label>
							</submit>
						</group>
					</Content>
				</cContentXmlBrief>
				<cContentXmlDetail/>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
				<bCascade/>
			</tblContent>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind id="cModuleTitle" nodeset="tblContent/cContentName" required="false()" type="string"/>
		<bind nodeset="tblContent/cContentXmlBrief/Content">
			<bind id="cPosition" nodeset="@position" required="true()" type="string"/>
			<bind id="cModuleType" nodeset="@moduleType" required="true()" type="string"/>
			<bind id="cModuleBox" nodeset="@box" required="false()" type="string"/>
			<bind id="cModuleTitle" nodeset="@title" required="false()" type="string"/>
			<bind id="cModuleTitleDisplay" nodeset="@displayTitle" required="false()" type="string"/>
      <bind id="cLinkType" nodeset="@linkType" required="false()" type="string"/>
			<bind id="cModuleLink" nodeset="@link" required="false()" type="string"/>
			<bind id="cFileLocation" nodeset="@contentFile" required="false()" type="string"/>
      <bind id="hideLabel" nodeset="@hideLabel" required="false()" type="string"/>
      <bind id="formLayout" nodeset="@formLayout" required="false()" type="string"/>
		</bind>
		<bind id="cContentBody" nodeset="tblContent/cContentXmlBrief/Content" required="false()" type="string"/>
        <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::bind[@nodeset='tblContent/cContentXmlBrief/Content']"/>
        <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::bind[@nodeset='tblContent']"/>
	</model>
	<group ref="EditContent" class="2col">
		<label>Edit xForm Module</label>
		<group>
      <group>
			<!-- These hidden fields and bindings are required for the component-->
			<input bind="nContentKey" class="hidden">
				<label>ContentId</label>
			</input>
			<input bind="cModuleType" class="hidden">
				<label>ModuleType</label>
			</input>

			<!-- end of hidden fields -->
          <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::group[@id='presentation']"/>
          <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::group[@id='publish']"/>
        <select bind="hideLabel" appearance="full" class="multiline">
          <item>
            <label>Hide Labels</label>
            <value>true</value>
          </item>
          <help class="inline">Labels must stay in a form so they are available to screen readers, but this will make them hidden.</help>
        </select>
        <select1 bind="formLayout" appearance="full">
          <label class="bold-label">Form Layout</label>
          <item>
            <label>Horizontal</label>
            <value>horizontal</value>
          </item>
          <item>
            <label>Vertical</label>
            <value>vertical</value>
          </item>
          <help class="inline">
            <p>Horizontal forms will have labels to the left of the input, vertical forms will have the labels above.</p>
          </help>
        </select1>
      </group>
		</group>
    <group class="ContentColumn2">
      <group ref="Content">
				<label>Form as Content</label>
        <alert>WARNING!! Updating forms is a specialised task please contact Eonic for Assistance.</alert>
				<input bind="cModuleTitle" class="long">
					<label>Title or Name</label>
				</input>
				
				<textarea bind="cContentBody" rows="10" cols="100" class="xml"/>
			
				<label>Or load form from file</label>
				<input bind="cFileLocation" class="long">
					<label>File Location</label>
				</input>
			</group>
      <group>
        <label>Sent Message</label>
        <relatedContent search="find add" type="FormattedText" relationType="" maxRelationNo="1" direction="1way">
          <label>formatted text</label>
        </relatedContent>
      </group>
		</group>
	</group>
	<group ref="submit" class="contentSubmit">
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save xForm</label>
		</submit>
	</group>
</Content>